package model.command;

import model.Command;
import model.Reference;
import controller.RuntimeState;

public class Inc extends Command {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3619195517379625805L;

	public Inc() {
		super();
	}

	@Override
	public int getParameterCount() {
		return 0;
	}

	@Override
	public String getCommandName() {
		return "INC";
	}

	@Override
	public void run(RuntimeState runtimeState, Reference... refs) {
		int i = runtimeState.getAccumulator();
		runtimeState.setAccumulator(++i);
	}

}
